package team.first.moviedb.entity;

import java.io.Serializable;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
  * @Author:        HAPPY
  * @Project_name:  project
  * @Package_name:  team.first.moviedb.entity
  * @Date:          2021/10/8 11:22
  */
public class Comments implements Serializable {
    private Integer id;

    /**
    * 电影编号
    */
    private Integer movieId;

    /**
    * 用户账号
    */
    private Integer userId;

    /**
     * 评论
     */
    private String comments;

    private static final long serialVersionUID = 1L;

    public Comments(Integer id, Integer movieId, Integer userId, String comments) {
        this.id = id;
        this.movieId = movieId;
        this.userId = userId;
        this.comments = comments;
    }

    public Integer getId() {
        return id;
    }

    public Comments setId(Integer id) {
        this.id = id;
        return this;
    }

    public Integer getMovieId() {
        return movieId;
    }

    public Comments setMovieId(Integer movieId) {
        this.movieId = movieId;
        return this;
    }

    public Integer getUserId() {
        return userId;
    }

    public Comments setUserId(Integer userId) {
        this.userId = userId;
        return this;
    }

    public String getComments() {
        return comments;
    }

    public Comments setComments(String comments) {
        this.comments = comments;
        return this;
    }
}